package demo1;

public class Test {
    public static void main(String[] args) {
        //Shape shape=new Shape();  抽象类不能进行实例化
        /*Triangle triangle=new Triangle(100,200);
        Rect rect=new Rect(10,20);triangle.draw();
        rect.draw();
        System.out.println(triangle.calSize());
        System.out.println(rect.calSize());*/
    }
}
